package com.fyp.erp;

import android.app.TabActivity;
import android.os.Bundle;
import android.view.Window;
import android.widget.TabHost;

public class Finance extends TabActivity {

	private TabHost tabHost;
	


	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.scmplanning);

		String tabname1 = "Current Assets";
		String tabname2 = "Fixed Assets";
		String tabname3 = "Current Liabilities";
		String tabname4 = "Long Term Liabilities";

		tabHost = getTabHost();
		tabHost.addTab(tabHost.newTabSpec("tab1").setContent(R.id.layout_tab_one).setIndicator(tabname1));
		tabHost.addTab(tabHost.newTabSpec("tab2").setContent(R.id.layout_tab_two).setIndicator(tabname2));
		tabHost.addTab(tabHost.newTabSpec("tab3").setContent(R.id.layout_tab_three).setIndicator(tabname3));
		tabHost.addTab(tabHost.newTabSpec("tab4").setContent(R.id.layout_tab_four).setIndicator(tabname4));

		tabHost.setCurrentTab(0);

}
}